package org.demo.mainframe.fx;

import org.demo.mainframe.fx.util.ImageUitl;

import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MainApplication extends Application {

	@Override
	public void start(Stage pStage) throws Exception {

		Parent root = new MainPanel(pStage);
		Scene scene = new Scene(root, NMSConstants.WIDTH, NMSConstants.HEIGHT);
		pStage.setScene(scene);

		pStage.getIcons().add(ImageUitl.loadImage(NMSConstants.ICONPATH));
		pStage.setTitle(NMSConstants.TITLE);
		pStage.centerOnScreen();
		pStage.show();
	}

	public static void main(String[] args) {
		launch(null);
	}

}
